<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>更新</title> @include("/common/cssAndJs.html"){}
</head>
<body>
	<div class="x-body layui-anim layui-anim-up">
		<div class="layui-container">
			<div class="layui-row">
				<div class="layui-col-md2"></div>
				<div class="layui-col-md8">
					<form action="${ctxPath}/tSystemMenu/tSystemMenuUpdate"
						class="layui-form addForm" onsubmit="return false">
						<input type="hidden" name="id" id="id" value="${model.id}" />
						<div class="layui-form-item">
							<label class="layui-form-label"> 上级菜单 </label>
							<div class="layui-input-block">
								<input type="hidden" id="pId" name="pId" value="${model.pId}">
								<input type="text" id="showNameDom" name="showNameDom"
									value="${showNameDom}" placeholder="如果不选择，默认为顶级菜单"
									autocomplete="off" class="layui-input boot-layer"
									boot-url="${ctxPath}/common/showTree?treeUrl=${ctxPath}/tSystemMenu/tSystemMenuList&treeTitle=name&showNameDom=showNameDom&showIdDom=pId"
									boot-width="300" boot-height="400" boot-title="选择上级菜单"
									end="function(){}">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>菜单名称
							</label>
							<div class="layui-input-block">
								<input type="text" id="name" name="name" value="${model.name}"
									placeholder="如果不选择，默认为顶级菜单" lay-verify="required"
									autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> 菜单图标 </label>
							<div class="layui-input-block">
								<input type="text" id="iconPicker" name="menuIcon"
									value="${model.menuIcon}" placeholder="请选择菜单图标" lay-verify=""
									autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>请求url
							</label>
							<div class="layui-input-block">
								<input type="text" id="reqUrl" name="reqUrl"
									value="${model.reqUrl}" placeholder="请输入请求url"
									lay-verify="required" autocomplete="off" class="layui-input">
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>类型
							</label>
							<div class="layui-input-block">
								<select id="menuType" name="menuType" lay-verify="required"
									v="${model.menuType}">
									<option value="">请选择菜单类型</option>
									<option value="0">菜单</option>
									<option value="1">按钮</option>
								</select>
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>控制类型
							</label>
							<div class="layui-input-block">
								<select id="type" name="type" lay-verify="required"
									v="${model.type}">
									<option value="">请选择控制类型</option>
									<option value="0">无需登录</option>
									<option value="1">需要登录无需权限</option>
									<option value="2">需要登录需要权限</option>
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">排序</label>
							<div class="layui-input-block">
								<input type="number" id="orderNum" name="orderNum"
									lay-verify="maxlengths" maxlengths="11"
									placeholder="纯数字,数值越大越靠前"  value="${model.orderNum}"
									lay-verify="" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">备注 </label>
							<div class="layui-input-block">
								<input type="text" id="tips" name="tips" value="${model.tips}"
									lay-verify="maxlengths" maxlengths="1000" placeholder="请输入备注"
									autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> </label>
							<button class="layui-btn" lay-filter="boot-form-btn"
								lay-submit="">更新</button>
						</div>
					</form>
				</div>
				<div class="layui-col-md2"></div>
			</div>
		</div>
	</div>
	<script
		src="${ctxPath}/static/js/view/system/tSystemMenu/tSystemMenu.js"></script>
</body>
</html>